
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>{$title}</title>
		<link rel="stylesheet" type="text/css" href="{$views_home}css/base.css"/>
		
		
		<style>
		
		
			.num_one{
				width:970px;

				border:1px #ccc solid; 
				margin:0 auto;
			}
			
			.num_one_head{
				width: 960px;
				height: 30px;
				margin: 0 auto;
				padding-left: 10px;
				background: #ecf2f5;
				font-size: 16px;
				color: #336699;
				line-height: 30px;

			}

			.num_one_1{
				width:940px;
				height: 60px;
				background: #fff;
				border-bottom:1px #ccc dashed;
				margin: 0 auto;
				
			}
			.num_one_pic_1{
				width:70px;
				height: 60px;
				background: url('{$views_home}image/body_pic.png')no-repeat;
				float: left;
				cursor: pointer;
			}
			.num_one_1_left{
				width:170px;
				height: 60px;
				background: #fff;

				float: left;

			}
			.num_one_1_left_p1{

				font-size: 15px;
				font-weight:bold;
				margin-top: 10px;
				cursor: pointer;
			}


			
			.num_one_1_mid{
				width:50px;
				height: 60px;
				background: #fff;
				float: left;
				margin-left: 400px;
				line-height: 60px;
				text-align: center;

			}


			.num_one_1_right{
				width:200px;
				height: 60px;
				background: #fff;
				float: left;
				margin-left: 20px;
				text-align:center;
			
			}
			.num_one_1_right_a{
				display: inline-block; 
				margin-top: 10px;

			}

	
		</style>
	</head>
	<body>
	
    	{if $_GET['bigid'] == null  || $_GET['bigid'] == 1}
		<div class="num_one">
			
		<!--除for循环外,data0,classname均来自数据库查询结果-->		
			{for $i=1;$i<$count;$i++}
			
			<div class="num_one_head">
				<a style="color:blue;" href="{$web_site}index.php?bigid={$data_one1[$i-1]['orderby']}">
				{$data_one1[$i-1]['classname']}</a>
			</div>
			
			{/for}

			{foreach $data_one2 as $k => $v}
			<div class="num_one_1 clearFix">
				<p class="num_one_pic_1"></p>
				
				<div class="num_one_1_left">
					<p class="num_one_1_left_p1">
						<a href="{$web_site}public.php?classid={$v['cid']}">{$v['classname']}</a>
					</p>
					<p class="num_one_1_left_p2">版主：{$v['compere']}</p>
				</div>

				
					
				{foreach $data_one3 as $k3 => $v3}
				{foreach $res as $key => $val}
				{if  $val['cid'] == $v3['classid']}
				
				<div class="num_one_1_mid">{$today_count=isset($today_count)?$today_count:0}/{$total}</div>
				
				<div class="num_one_1_right">
					<a class="num_one_1_right_a" href="{$web_site}personal.php?id={$v3['id']}">{$v3['title']}</a> 
					 <p>{$addtime=date('Y-m-d H:i:s',$v3['addtime'])}&nbsp;&nbsp;&nbsp;{$data_user[0]['username']}</p>
				</div>
			{/if}
				{/foreach}
				
				{/foreach}
			</div>
		{/foreach}


		</div>
		{/if}

	
	</body>	
</html>


